
<template>
  <div >
    <router-view
    class='view'
    keep-alive
    transition
    transition-mode='out-in'
    ></router-view>
  </div>
  <!--<div>-->
    <!--Clicked: {{ count }} times-->
    <!--<button @click="increment">+</button>-->
    <!--<button @click="decrement">-</button>-->
    <!--<button @click="incrementIfOdd">Increment if odd</button>-->
    <!--<button @click="incrementAsync">Increment async</button>-->
  <!--</div>-->
</template>

<script>
import * as actions from './vuex/actions'
import store from './vuex/store'

export default {
  //store的注入.
  store: store,
  vuex: {
    getters: {
      count: state => state.login.count
    },
    actions: actions
  },
  components: {
  },
  route:{
    activate({next}){
      next();
      this.$router.router.go("/home");
    }
  }
}
</script>
<style >
  body{
    font-family:"Open Sans", Source Sans Pro, Helvetica, sans-serif;
    margin:0 0;
    padding:0 0;
    font-size:16px;
  }
  body a:hover{
    text-decoration: none;
  }
#app {
  color: #2c3e50;
  height:100%;
}
.view{
  width: 100%;
  transition: all .5s ease;
  box-sizing: border-box ;
}
.v-enter, .v-leave{
  opacity: 0;
}
    
.team-page a {
  text-decoration: none;
}
.team-page a:hover {
  color: #fff;
  text-decoration: none;
}

.logo {
  width: 100px;
  height: 100px;
  text-align: center;
}

.active {
  color: green;
}
.team-page{

  overflow-x: hidden;
}
.team-page .team-aside{
  width:272px;
}
.team-page .team-main{
  position: relative;
}
.team-page.flex-horiz{
  display: flex;
}
.team-page.flex-vert{
  display: flex;
}

.flex-horiz,.flex-vert{
  display:flex;
}
.flex-horiz{
  flex-direction: row;
}
.flex-vert{
  flex-direction: column;
}
.flex-cvert{
  align-items:center;
}
.flex-between{
  justify-content: space-between;
}
.flex-space{
  min-height: 1px;
  min-width:1px;
  flex:1;
}
.flex-fill{
  flex:1 1 auto;
  margin-left:16px;
}
.team-header{
  height:48px;
  padding:0 12px;
  background: #393c40;
  position:relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color:#fff;
}
.teamtool-bar{
  padding: 0 16px;
  background-color: #393c40;
}

.team-tools{
  padding:0 8px;
  display: flex;
  background:#393c40;
  align-items:center;
  height:48px;
}
.btn-start{
  height: 32px;
  min-width: 128px;
  margin: 0;
  padding: 0 16px;
  background-color: #fa6855;
  border: 0;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  -webkit-transition: background .2s ease;
  transition: background .2s ease;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  overflow: hidden;
  white-space: nowrap;
}
.btn-start:hover{
  background: #ed5844;
}
.btn-tool{
  display:flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #b3b3b3;
  line-height: 32px;
  font-size: 32px;
  cursor:pointer;
  text-align: center;
  align-items:center;
  justify-content: center;
  margin-left:8px;
}
.btn-tool.active{
  color: #e6e6e6;
  background:#2c2f33;
}

.text-overflow{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main h1,p{

  text-align: center;
}
</style>
